// samsting : this file is auto create.

#include "Ram/2015-05-01/ListPoliciesResponse.h"

namespace aliyun { namespace Ram {

ListPoliciesResponse::ListPoliciesResponse() {
}

const string& ListPoliciesResponse::Policy::GetPolicyName(void) const {
  return PolicyName_;
}

const string& ListPoliciesResponse::Policy::GetPolicyType(void) const {
  return PolicyType_;
}

const string& ListPoliciesResponse::Policy::GetDescription(void) const {
  return Description_;
}

const string& ListPoliciesResponse::Policy::GetDefaultVersion(void) const {
  return DefaultVersion_;
}

const string& ListPoliciesResponse::Policy::GetCreateDate(void) const {
  return CreateDate_;
}

const string& ListPoliciesResponse::Policy::GetUpdateDate(void) const {
  return UpdateDate_;
}

int ListPoliciesResponse::Policy::GetAttachmentCount(void) const {
  return AttachmentCount_;
}

const std::vector<ListPoliciesResponse::Policy>& ListPoliciesResponse::GetPolicies(void) const {
  return Policies_;
}

bool ListPoliciesResponse::GetIsTruncated(void) const {
  return IsTruncated_;
}

const string& ListPoliciesResponse::GetMarker(void) const {
  return Marker_;
}

const char* ListPoliciesResponse::BaseKey(void) {
  return "ListPoliciesResponse";
}

void ListPoliciesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Policies__length = 0;
  UnmarshallerInt(Policies__length, response_map, "ListPoliciesResponse.Policies.Length");
  if(Policies__length >= 0) {
    Policies_.resize(Policies__length);
    for(int i1 = 0; i1 < Policies__length; i1++) {
      UnmarshallerString(Policies_[i1].PolicyName_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].PolicyName");
      UnmarshallerString(Policies_[i1].PolicyType_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].PolicyType");
      UnmarshallerString(Policies_[i1].Description_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Policies_[i1].DefaultVersion_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].DefaultVersion");
      UnmarshallerString(Policies_[i1].CreateDate_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].CreateDate");
      UnmarshallerString(Policies_[i1].UpdateDate_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].UpdateDate");
      UnmarshallerInt(Policies_[i1].AttachmentCount_, response_map, "ListPoliciesResponse.Policies["+string_ValueOfInt(i1)+"].AttachmentCount");
    } // for(int i1 = 0; i1 < Policies__length; i1++) {
  } // if(Policies__length >= 0) {

  UnmarshallerBool(IsTruncated_, response_map, "ListPoliciesResponse.IsTruncated");
  UnmarshallerString(Marker_, response_map, "ListPoliciesResponse.Marker");
}


} } // namespace aliyun { namespace Ram {

// end of file 
